import { request } from "@/utils/request.js";
import { upload } from '@/utils/upload.js';

//寄件服务
export function shipment(data) {
  return request({
    url: '/wxapi/shipment',
    method: 'post',
    data: data
  })
}

export function uploadAvatar(data) {
  return upload({
    url: '/upload',
    name: data.name,
    filePath: data.filePath,
	formData: data.formData || '',
  })
}